package org.wzh.spring.di.demon;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * 标示为首选bean.
 * XML中首选bean配置<bean id="iceCream" class="org.wzh.spring.di.demon.IceCream" primary="true">
 * 
 * 但是,如果标示了两个或更多的首选bean,那么依然无法注入.
 * @author MicroCat
 *
 */
@Component
@Primary
public class IceCream implements Dessert {

}
